package Emp;

public class SalesEmployee extends Employee{
    private double sale;//月销售呃
    private double deduct;//提成率
    public SalesEmployee(String name, int month,double sale,double deduct){
        super(name, month);
        this.deduct = deduct;
        this.sale = sale;
    }
    public double getSale() {
        return sale;
    }

    public void setDeduct(double deduct) {
        this.deduct = deduct;
    }

    public double getDeduct() {
        return deduct;
    }

    public void setSale(int sale) {
        this.sale = sale;
    }
    public double getSalary(int month){
        return sale * deduct + super.getSalary(month);
    }
}
